// XInput.cpp : Defines the exported functions for the DLL application.
//

#include "stdafx.h"
#include <XMouse.h>
#include <OpenGL\freeglut.h>


XMouse::XMouse()
{

}

void XMouse::SetPosition(int x, int y)
{
	Position.X = x;
	Position.Y = y;
}

XPosition XMouse::GetPosition()
{
	return Position;
}

XButton XMouse::GetLeft()
{
	return LeftButton;
}

XButton XMouse::GetRight()
{
	return RightButton;
}

XButton XMouse::GetMiddle()
{
	return MiddleButton;
}

XButton XMouse::GetWheelUp()
{
	return WheelUp;
}

XButton XMouse::GetWheelDown()
{
	return WheelDown;
}

void XMouse::Update()
{
	LeftButton.Update();
	RightButton.Update();
	MiddleButton.Update();
	WheelUp.Update();
	WheelDown.Update();
}
